package com.wiz.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.wiz.to.HQBaseInfoTO;
import com.wiz.vo.criteria.HqSearchCriteriaTO;

public interface HQBaseInfoMapper {
	
	void add(HQBaseInfoTO hqBaseInfoTO);
	/**根据总部创建散户企业*/
	void addCompany(Map<String, Object> map);
	void update(HQBaseInfoTO hqBaseInfoTO);
	void remove(@Param(value="hqId")String hqId);
	List<HQBaseInfoTO> gethqsById(@Param(value="hqId")String hqId);
	List<HQBaseInfoTO> gethqsByCriteriaTO(HqSearchCriteriaTO hqSearchCriteriaTO);
	int gethqsCntByCriteriaTO(HqSearchCriteriaTO hqSearchCriteriaTO);
	String getMaxPhId();
	/**查询所有总部信息*/
	List<HQBaseInfoTO> getListHq();
	void addWeiXinConfig(@Param(value="hqId")String hqId,
			@Param(value="hqName")String hqName,
			@Param(value="createdTime")Date createdTime);
	void addIncrementiId(@Param(value="hqId")String hqId,
			@Param(value="memberid")int memberid,
			@Param(value="companyid")int companyid);
}